Optimal. Leaf size=194 \[ -\frac {\left (\frac {1}{8}-\frac {i}{8}\right ) (A-i B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {(-B+i A) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.60, antiderivative size = 194, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.132, Rules used = {3595, 3596, 12, 3544, 205} \[ \frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}-\frac {\left (\frac {1}{8}-\frac {i}{8}\right ) (A-i B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac {(-B+i A) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 205
Rule 3544
Rule 3595
Rule 3596
Rubi steps
\begin {align*} \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx &=\frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}-\frac {\int \frac {\sqrt {\tan (c+d x)} \left (\frac {3}{2} a (i A-B)-a (A-4 i B) \tan (c+d x)\right )}{(a+i a \tan (c+d x))^{3/2}} \, dx}{5 a^2}\\ &=\frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {\int \frac {-\frac {1}{4} a^2 (A+11 i B)-\frac {1}{2} a^2 (7 i A+13 B) \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}} \, dx}{15 a^4}\\ &=\frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {\int -\frac {15 a^3 (A-i B) \sqrt {a+i a \tan (c+d x)}}{8 \sqrt {\tan (c+d x)}} \, dx}{15 a^6}\\ &=\frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}-\frac {(A-i B) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx}{8 a^3}\\ &=\frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {(i A+B) \operatorname {Subst}\left (\int \frac {1}{-i a-2 a^2 x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{4 a d}\\ &=\frac {\left (\frac {1}{8}+\frac {i}{8}\right ) (i A+B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac {(i A-B) \tan ^{\frac {3}{2}}(c+d x)}{5 d (a+i a \tan (c+d x))^{5/2}}+\frac {(A+11 i B) \sqrt {\tan (c+d x)}}{30 a d (a+i a \tan (c+d x))^{3/2}}+\frac {(13 A-37 i B) \sqrt {\tan (c+d x)}}{60 a^2 d \sqrt {a+i a \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 7.90, size = 214, normalized size = 1.10 \[ \frac {e^{-3 i (c+d x)} \sec ^3(c+d x) \left (\left (-1+e^{2 i (c+d x)}\right ) \left (i A \left (e^{2 i (c+d x)}+17 e^{4 i (c+d x)}-3\right )+B \left (-11 e^{2 i (c+d x)}+23 e^{4 i (c+d x)}+3\right )\right )-15 i (A-i B) e^{5 i (c+d x)} \sqrt {-1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\frac {e^{i (c+d x)}}{\sqrt {-1+e^{2 i (c+d x)}}}\right )\right )}{120 a^2 d \sqrt {\tan (c+d x)} (\tan (c+d x)-i)^2 \sqrt {a+i a \tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.71, size = 459, normalized size = 2.37 \[ -\frac {{\left (15 \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (5 i \, d x + 5 i \, c\right )} \log \left (\frac {2 i \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (i \, d x + i \, c\right )} + \sqrt {2} {\left ({\left (i \, A + B\right )} e^{\left (2 i \, d x + 2 i \, c\right )} + i \, A + B\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{4 i \, A + 4 \, B}\right ) - 15 \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (5 i \, d x + 5 i \, c\right )} \log \left (\frac {-2 i \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (i \, d x + i \, c\right )} + \sqrt {2} {\left ({\left (i \, A + B\right )} e^{\left (2 i \, d x + 2 i \, c\right )} + i \, A + B\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{4 i \, A + 4 \, B}\right ) - \sqrt {2} {\left ({\left (17 \, A - 23 i \, B\right )} e^{\left (6 i \, d x + 6 i \, c\right )} + 6 \, {\left (3 \, A - 2 i \, B\right )} e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, {\left (A - 4 i \, B\right )} e^{\left (2 i \, d x + 2 i \, c\right )} - 3 \, A - 3 i \, B\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-5 i \, d x - 5 i \, c\right )}}{120 \, a^{3} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \tan \left (d x + c\right ) + A\right )} \tan \left (d x + c\right )^{\frac {3}{2}}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.38, size = 1096, normalized size = 5.65 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\mathrm {tan}\left (c+d\,x\right )}^{3/2}\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )}{{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________